<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container">
    <div class="row clearfix">
        <div class="col-md-12 column">
            <div class="page-header">
                <h1>订单列表--显示所有订单</h1>
            </div>
        </div>


    </div>

    <div class="row clearfix">
        <div class="col-md-12 column">
            <div class="page-header">
                <h3>未支付</h3>
            </div>
            <table class="table table-hover table-striped">
                <thead>
                <tr>
                    <th>图片</th>
                    <th>路线名</th>
                    <th>价格</th>
                    <th>数量</th>
                    <th>总价</th>
                    <th>开始日期</th>
                    <th>操作</th>
                </tr>
                </thead>
                <%--书籍从数据库中查询出来，从list中便利出来 ：foreach--%>
                <tbody>
                <c:forEach var="order" items="${noPay.list}" >
                    <tr>
                        <td>
                            <c:if test="${order.pics != null }">
                                <a href="${pageContext.request.contextPath}/path/showPathInfo?pid=${order.pid}">
                                    <img id="images" width="50px" height="50px" src="${pageContext.request.contextPath}/upload/${order.pics}">
                                </a>
                            </c:if>
                        </td>
                        <td>${order.pathname}</td>
                        <td>${order.price}</td>
                        <td>${order.num}</td>
                        <td>${order.value}</td>
                        <td>${order.startDate}</td>
                        <td>
                            <a class="btn btn-default" href="${pageContext.request.contextPath}/user/toPay?oid=${order.oid}">去支付</a>
                            |  <a class="btn btn-default" href="${pageContext.request.contextPath}/user/deleteOrder?oid=${order.oid}">删除</a>
                        </td>
                    </tr>
                </c:forEach>
                </tbody>
            </table>

        </div>

        <div class="col-md-12 column">
            <div class="page-header">
                <h3>未审核</h3>
            </div>
            <table class="table table-hover table-striped">
                <thead>
                <tr>
                    <th>图片</th>
                    <th>路线名</th>
                    <th>价格</th>
                    <th>数量</th>
                    <th>总价</th>
                    <th>开始日期</th>
                    <th>操作</th>
                </tr>
                </thead>
                <%--书籍从数据库中查询出来，从list中便利出来 ：foreach--%>
                <tbody>
                <c:forEach var="order" items="${noReview.list}" >
                    <tr>
                        <td>
                            <c:if test="${order.pics != null }">
                                <a href="${pageContext.request.contextPath}/path/showPathInfo?pid=${order.pid}">
                                    <img width="50px" height="50px" src="${pageContext.request.contextPath}/upload/${order.pics}">
                                </a>
                            </c:if>
                        </td>
                        <td>${order.pathname}</td>
                        <td>${order.price}</td>
                        <td>${order.num}</td>
                        <td>${order.value}</td>
                        <td>${order.startDate}</td>
                        <td>
                            <a class="btn btn-default" href="${pageContext.request.contextPath}/user/allOrderInfo?oid=${order.oid}">去添加信息</a>
                            |  <a class="btn btn-default" href="${pageContext.request.contextPath}/user/deleteOrder?oid=${order.oid}">删除</a>
                        </td>
                    </tr>
                </c:forEach>
                </tbody>
            </table>

        </div>

        <div class="col-md-12 column">
            <div class="page-header">
                <h3>未开始</h3>
            </div>
            <table class="table table-hover table-striped">
                <thead>
                <tr>
                    <th>图片</th>
                    <th>路线名</th>
                    <th>价格</th>
                    <th>数量</th>
                    <th>总价</th>
                    <th>开始日期</th>
                    <th>操作</th>
                </tr>
                </thead>
                <%--书籍从数据库中查询出来，从list中便利出来 ：foreach--%>
                <tbody>
                <c:forEach var="order" items="${noStart.list}" >
                    <tr>
                        <td>
                            <c:if test="${order.pics != null }">
                                <a href="${pageContext.request.contextPath}/path/showPathInfo?pid=${order.pid}">
                                    <img width="50px" height="50px" src="${pageContext.request.contextPath}/upload/${order.pics}">
                                </a>
                            </c:if>
                        </td>
                        <td>${order.pathname}</td>
                        <td>${order.price}</td>
                        <td>${order.num}</td>
                        <td>${order.value}</td>
                        <td>${order.startDate}</td>
                        <td>
                            <a class="btn btn-default" href="${pageContext.request.contextPath}/user/allOrderInfo?oid=${order.oid}">查看身份信息</a>
                            |  <a class="btn btn-default" href="${pageContext.request.contextPath}/user/deleteOrder?oid=${order.oid}">删除</a>
                        </td>
                    </tr>
                </c:forEach>
                </tbody>
            </table>

        </div>

        <div class="col-md-12 column">
            <div class="page-header">
                <h3>未结束</h3>
            </div>
            <table class="table table-hover table-striped">
                <thead>
                <tr>
                    <th>图片</th>
                    <th>路线名</th>
                    <th>价格</th>
                    <th>数量</th>
                    <th>总价</th>
                    <th>开始日期</th>
                    <th>操作</th>
                </tr>
                </thead>
                <%--书籍从数据库中查询出来，从list中便利出来 ：foreach--%>
                <tbody>
                <c:forEach var="order" items="${noCompleted.list}" >
                    <tr>
                        <td>
                            <c:if test="${order.pics != null }">
                                <a href="${pageContext.request.contextPath}/path/showPathInfo?pid=${order.pid}">
                                    <img width="50px" height="50px" src="${pageContext.request.contextPath}/upload/${order.pics}">
                                </a>
                            </c:if>
                        </td>
                        <td>${order.pathname}</td>
                        <td>${order.price}</td>
                        <td>${order.num}</td>
                        <td>${order.value}</td>
                        <td>${order.startDate}</td>
                        <td>
                            <a class="btn btn-default" href="${pageContext.request.contextPath}/user/allOrderInfo?oid=${order.oid}">查看信息</a>
                            |  <a class="btn btn-default" href="${pageContext.request.contextPath}/user/deleteOrder?oid=${order.oid}">删除</a>
                        </td>
                    </tr>
                </c:forEach>
                </tbody>
            </table>

        </div>

        <div class="col-md-12 column">
            <div class="page-header">
                <h3>未评论</h3>
            </div>
            <table class="table table-hover table-striped">
                <thead>
                <tr>
                    <th>图片</th>
                    <th>路线名</th>
                    <th>价格</th>
                    <th>数量</th>
                    <th>总价</th>
                    <th>开始日期</th>
                    <th>操作</th>
                </tr>
                </thead>
                <%--书籍从数据库中查询出来，从list中便利出来 ：foreach--%>
                <tbody>
                <c:forEach var="order" items="${noComment.list}" >
                    <tr>
                        <td>
                            <c:if test="${order.pics != null }">
                                <a href="${pageContext.request.contextPath}/path/showPathInfo?pid=${order.pid}">
                                    <img width="50px" height="50px" src="${pageContext.request.contextPath}/upload/${order.pics}">
                                </a>
                            </c:if>
                        </td>
                        <td>${order.pathname}</td>
                        <td>${order.price}</td>
                        <td>${order.num}</td>
                        <td>${order.value}</td>
                        <td>${order.startDate}</td>
                        <td>
                            <a class="btn btn-default" href="${pageContext.request.contextPath}/user/toComment?oid=${order.oid}">去评论</a>
                            |  <a class="btn btn-default" href="${pageContext.request.contextPath}/user/deleteOrder?oid=${order.oid}">删除</a>
                        </td>
                    </tr>
                </c:forEach>
                </tbody>
            </table>

        </div>
    </div>

    <div class="col-md-12 column">
        <div class="page-header">
            <h3>已结束</h3>
        </div>
        <table class="table table-hover table-striped">
            <thead>
            <tr>
                <th>图片</th>
                <th>路线名</th>
                <th>价格</th>
                <th>数量</th>
                <th>总价</th>
                <th>开始日期</th>
                <th>操作</th>
            </tr>
            </thead>
            <%--书籍从数据库中查询出来，从list中便利出来 ：foreach--%>
            <tbody>
            <c:forEach var="order" items="${closed.list}" >
                <tr>
                    <td>
                        <c:if test="${order.pics != null }">
                            <a href="${pageContext.request.contextPath}/path/showPathInfo?pid=${order.pid}">
                                <img width="50px" height="50px" src="${pageContext.request.contextPath}/upload/${order.pics}">
                            </a>
                        </c:if>
                    </td>
                    <td>${order.pathname}</td>
                    <td>${order.price}</td>
                    <td>${order.num}</td>
                    <td>${order.value}</td>
                    <td>${order.startDate}</td>
                    <td>
                        <a class="btn btn-default" href="${pageContext.request.contextPath}/user/toUpdateComment?oid=${order.oid}">修改评论</a>
                        |  <a class="btn btn-default" href="${pageContext.request.contextPath}/user/deleteOrder?oid=${order.oid}">删除</a>

                    </td>
                </tr>
            </c:forEach>
            </tbody>
        </table>

    </div>
</div>


</div>




</body>
</html>
